{{extend 'layout.html'}}
{{def pad(text):}}
{{items= text.split('/')}}
{{return items[0]+'/.../'+items[-1]}}

<div class="ui-body ui-body-c ui-corner-all">
  
  <h3>Search</h3>

  {{=form}}

</div>

{{if rows:}}
<ul data-role="listview" data-inset="true">
  <li data-role="list-divider">Results</li>
  {{for row in rows:}}
  <li>{{=A(pad(row.path),_href=URL('ensemble',vars=dict(path=row.path)))}}</li>
  {{pass}}
</ul>
{{pass}}

